libxl: Add LIBXL_HAVE_DEVICE_PCI_SEIZE
authorIan Jackson <ian.jackson@eu.citrix.com>
Mon, 10 Mar 2014 12:09:22 +0000 (12:09 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Mon, 10 Mar 2014 12:09:22 +0000 (12:09 +0000)
This was part of
  [PATCH v2 2/2] xl: Add "seize" option to PCI devices
but I accidentally applied v1.

Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
tools/libxl/libxl.h

index 06bbca687fa5b53b945fd244ad432b41fdf2342b..4c9cd646f9d1c67653e8b57287b3330dcddbfcb8 100644 (file)
 #define LIBXL_HAVE_NO_SUSPEND_RESUME 1
 #endif
 
+/*
+ * LIBXL_HAVE_DEVICE_PCI_SEIZE
+ *
+ * If this is defined, then the libxl_device_pci struct will contain
+ * the "seize" boolean field.  If this field is set, libxl_pci_add will
+ * check to see if the device is currently assigned to pciback, and if not,
+ * it will attempt to do so (unbinding the device from the existing driver).
+ */
+#define LIBXL_HAVE_DEVICE_PCI_SEIZE 1
+
 /* Functions annotated with LIBXL_EXTERNAL_CALLERS_ONLY may not be
  * called from within libxl itself. Callers outside libxl, who
  * do not #include libxl_internal.h, are fine. */